package com.jingtai.shop.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jingtai.core.entity.member.MemberInfo;
import com.jingtai.shop.webfacade.bo.user.*;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author GR
 * @since 2020-11-29
 */
public interface MemberInfoService extends IService<MemberInfo> {

    /**
     * 用户注册
     */
    boolean userRegister(UserRegisterBO bo);

    /**
     * 用户登录
     */
    Map<String, String> userLogin(UserLoginBO bo);

    /**
     * 用户登出
     */
    void userLogout(HttpServletRequest request);

    /**
     * 忘记密码
     */
    boolean userForgetPwd(UserForgetPwdBO bo);

    /**
     * 用户获取验证码
     */
    boolean userObtainCode(UserObtainCodeBO bo);

    /**
     * 用户-修改个人信息
     */
    boolean editUserInfo(EditUserInfoBO bo);

    /**
     * 用户-注销用户
     */
    boolean userDestroy(HttpServletRequest request);
}
